<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改partpost')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-edit" th:object="${partPost}">
        <h4 class="form-header h4">partpost信息</h4>
        <input name="partPostId" th:field="*{partPostId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">岗亭名称：</label>
            <div class="col-sm-8">
                <input name="partPostName" th:field="*{partPostName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">停车场：</label>
            <div class="col-sm-8">
                <select name="partLotId" class="form-control m-b">
                    <option th:each="partLot:${partLots}" th:text="${partLot.partLotName}"
                            th:value="${partLot.partLotId}"
                            th:selected="${partLot.partLotId==partPost.partLotId}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <select name="partTempEnter" class="form-control m-b" th:with="type=${@dict.getType('part_emp_enter')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:selected="${dict.dictValue==partPost.partTempEnter}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <select name="partToll" class="form-control m-b" th:with="type=${@dict.getType('part_post_poll')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{partToll}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <input name="partScene" th:field="*{partScene}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <input name="partEnter" th:field="*{partEnter}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "part/post";
    $("#form-post-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
        }
    }
</script>
</body>
</html>